package api

import (
	"github.com/gin-gonic/gin"
	"zhihu/api/handler"
)

func ZhiHu(r *gin.Engine) {
	api := r.Group("./api")
	{
		essay := api.Group("/essay")
		{
			essay.POST("create", handler.CreateEssay)
		}
		com := api.Group("/comment")
		{
			com.POST("create", handler.CreateComment)
			com.POST("find", handler.FindComment)
		}
	}
}
